package com.qian.api.ddj.service;

import com.qian.api.ddj.model.Spider;
import com.qian.api.ddj.model.SpiderCount;
import com.qian.api.ddj.model.SpiderQueryModel;
import com.yaowk.api.common.IBaseService;
import com.yaowk.api.common.PageReq;
import com.yaowk.api.common.PageResp;

import java.util.List;

public interface ISpiderService extends IBaseService<Spider,Integer> {
    /**
     * 通过businessId查询最后一条记录
     *
     * @param businessId
     * @return
     */
    Spider findFirstByBusinessId(Integer businessId);

    /**
     * 统计
     *
     * @param queryModel
     */
    List<SpiderCount> count(SpiderQueryModel queryModel);

    /**
     * 搜索
     *
     * @param model
     * @param pageReq
     * @return
     */
    PageResp<Spider> findAll(SpiderQueryModel model, PageReq pageReq);
}
